package cn.study.executorService;


/**
 * @Author     ：跟大佳一起学架构
 * @Description：线程池中断
 */
public class ThreadPoolInterrupt {

    public static void main(String[] args) {
        Thread thread = new Thread(new Runnable() {
            @Override
            public void run() {
                try {
                    Thread.sleep(10000);
                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                }
            }
        });
        thread.start();
        thread.interrupt();
    }
}
